FILE_PREFIX = r"/api/file"
UPLOAD_PATH = r'C:\Users\admin\Desktop'
STATIC_PATH = UPLOAD_PATH

LOGS_DIR = "./logs/app.log"

UPLOAD_MATERIAL_IMAGE_SIZE = 1024 * 1024

MYSQL_USER = "root"
MYSQL_PASSWORD = "Kingsha123456../"
MYSQL_PORT = 3306
MYSQL_HOST = "172.18.0.82"
MYSQL_DB = "file_upload"


Standardized_MYSQL_USER = "root"
Standardized_MYSQL_PASSWORD = "Kingsha123456../"
Standardized_MYSQL_PORT = 3306
Standardized_MYSQL_HOST = "172.18.0.82"
Standardized_MYSQL_DB = "standardized"
FUNCTION_SEARCH_ID = "5"
FUNCTION_ID = "5"
FUNCTION = "文件上传"

FILE_TYPE = ['txt']



# config.py
CHROMA_PERSIST_DIR = "./chroma_local_data"  # 本地持久化路径
LOCAL_MODEL_DIR = "./paraphrase-multilingual-MiniLM-L12-v2" #模型地址
BATCH_SIZE = 8
COLLECTION_NAME = "file_search"  #集合名称
MAX_RETRIES = 5 #最大重试次数
MAX_LENGTH = 300 #分段最大长度
REDIS_HOST = "127.0.0.1"
REDIS_PORT = 6379
REDIS_PASSWORD = ""
REDIS_DATABASE = 0
REDIS_KEY = "vector_processing_queue"

Dead_Letter_Queue = "dead_letter_queue" #是用来存储无法成功处理的任务


CHROMA_SERVER_HOST = "127.0.0.1"  #
CHROMA_SERVER_POST = "8000"
CHROMA_PERSISTENT_DATA_PATH = "./chroma_local_data"
CHROMA_CONTRACT_NAME = "file_search"